package com.rpcdemo.client;

import com.rpcdemo.client.impl.ProductClientServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * FeignClient注解的接口，会生成相应的代理类
 * value就是服务名
 * 可用于eureka的服务轮询
 */
@FeignClient(value = "www.cnblogs.com", fallbackFactory = ProductClientServiceImpl.class)
public interface ProductClientService {

    @GetMapping("/lijiale/p/")
    String queryProductByIds(@RequestParam String index);

}
